package com.zhengke.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zhengke.common.object.Result;
import com.zhengke.service.SpflxstjService;

@Controller
public class SpflxstjController {
	 /**
     * ssx
     * */
	@Autowired
	private SpflxstjService service;
	
	/**
	 * 到列表页面
	 * @return
	 */
	@RequestMapping("count/queryClassification.do")
	public String toQuery() {
		return "spflxstj/list";
	}
	
	/*
	 * 查询列表
	 * */
	@RequestMapping("sfj/list.do")
	@ResponseBody
	public Result queryAll(String startTime,String endTime,int page,int limit) {
		Result rs = null; 
		try {
			rs = service.quaryAll(startTime,endTime,page, limit);
			return rs;
		} catch (Exception e) {
			e.printStackTrace();
		}  	
		return new Result();
	}
	
}
